]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: Add a few version parameters
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 30 Jun 2011 00:09:00 +0000 (20:09 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 4 Aug 2011 17:40:04 +0000 (13:40 -0400)
Add ShellVersion, designed for detecting OUT_OF_DATE extensions so they can't
be installed, as well as ApiVersion, designed for backwards-compatibility with
the SweetTooth web-app, which must support all shell versions.

https://bugzilla.gnome.org/show_bug.cgi?id=654770

js/ui/shellDBus.js

index ee41491c7b85b0cd1aa7dbd51d3a0f078e68d99a..f423ca18ee044e0fa88800c5f714834f4d4e862b 100644 (file)
@@ -2,6 +2,7 @@
 
 const DBus = imports.dbus;
 
+const Config = imports.misc.config;
 const ExtensionSystem = imports.ui.extensionSystem;
 const Main = imports.ui.main;
 
@@ -23,7 +24,13 @@ const GnomeShellIface = {
     signals: [],
     properties: [{ name: 'OverviewActive',
                    signature: 'b',
-                   access: 'readwrite' }]
+                   access: 'readwrite' },
+                 { name: 'ApiVersion',
+                   signature: 'i',
+                   access: 'read' },
+                 { name: 'ShellVersion',
+                   signature: 's',
+                   access: 'read' }]
 };
 
 function GnomeShell() {
@@ -82,7 +89,11 @@ GnomeShell.prototype = {
             Main.overview.show();
         else
             Main.overview.hide();
-    }
+    },
+
+    ApiVersion: 1,
+
+    ShellVersion: Config.PACKAGE_VERSION
 };
 
 DBus.conformExport(GnomeShell.prototype, GnomeShellIface);